package cn.tedu.store.temperatureDetection.controller;


import cn.tedu.store.common.ApiResult;
import cn.tedu.store.temperatureDetection.entity.Patient;
import cn.tedu.store.temperatureDetection.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 75936
 * @version 1.0
 * @project demo_test
 * @description
 * @date 2022-11-28 15:44:15
 */
@RestController
@RequestMapping("patient")
public class PatientController {
    @Autowired
    private PatientService patientService;

    @PostMapping("add")
    public ApiResult addOne(@RequestBody Patient patient){
        patientService.add(patient);
        return ApiResult.ok() ;
    }
}
